package com.automannn.cloud.practice.nacosRegistry;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author automannn
 * *Date 2022/2/19
 */
@SpringBootApplication
/*xxx:  默认情况下，在spring-cloud-commons已经包含了自动配置项，所以这个没有意义, 详见spring-cloud-commons的spring.factories*/
//@EnableDiscoveryClient
@RequestMapping
public class ServiceProvderApp {
    public static void main(String[] args) {
        SpringApplication.run(ServiceProvderApp.class);
    }

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        return "hello,world!";
    }
}
